package com.java3_17;

public class Person<T> {
    private String name;
    private T company;

    public Person(String name) {
        this.name = name;
    }

    public Person(String name, T company) {
        this.name = name;
        this.company = company;
    }

    public Person() {

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public T getCompany() {
        return company;
    }

    public void setCompany(T company) {
        this.company = company;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", company=" + company +
                '}';
    }
}
